class_name MainRoute
extends Object




static func go_to_chose(node):
	await Loading.load_path("res://scene/chose.tscn",2*randf()).complete
	if node != null:
		node.queue_free()


static func go_to_game(node):
	await Loading.load_path("res://scene/game.tscn",2*randf()).complete
	if node != null:
		node.queue_free()
		
static func go_to_save(node):
	await Loading.load_path("res://common/save/save.tscn",2*randf()).complete
	if node != null:
		node.queue_free()


static func go_to_control(node):
	await Loading.load_path("res://scene/control.tscn",2*randf()).complete
	if node != null:
		node.queue_free()
		
		

